package com.h.forum.pojo.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.context.annotation.Bean;

import java.io.Serializable;

/**
 * 注册时候接收的类型
 */
@Data
public class UserRegisterRequest implements Serializable {
    @NotBlank(message = "用户名不能为空")
    private String userName;

    @NotBlank(message = "昵称不能为空")
    private String nickName;

    @NotBlank(message = "密码不能为空")
    private String passWord;

    @NotBlank(message = "密码不能为空")
    private String passWordRepeat;
}
